﻿import QtQuick 2.0
import "../components"
import "../sampleManager"
import "../dataAnalysis"

Rectangle {
    id: root

    anchors.fill: parent
    property int currengPage: 2

    property string expGuid: ""





    onVisibleChanged: {
        if(visible){
            name.text=CULF.tran()[0]
            name2.text=CULF.tran()[1]
            name3.text=CULF.tran()[2]
        }
    }

    function tabPage(idx){

        currengPage = idx

    }


    Item{
        id: layout_page
        height: root.height - 120*dp+60*dp
        width: root.width

        DataAnalysiso{
            id: dataAnalysis
            anchors.fill: parent
            visible: currengPage === 2
        }


    }
    Rectangle{
        id: layout_button
        y: parent.height-70*dp
        height: 70*dp
        width: parent.width

        Item{           // Page3 结果 =================================
            anchors.fill: parent
            visible: currengPage === 2
            Text {
                id: name
                y: 10*dp; x: 10
                font.pixelSize: config.fontsize
                color:config.colorChannel1
            }
            Text {
                id: name2
                y: 10*dp; x: 600*dp
                font.pixelSize: config.fontsize
                color: config.colorChannel2
            }
            Text {
                id: name3
                y: 40*dp; x: 10
                font.pixelSize: config.fontsize
                color: config.colorChannel3
            }
        }

        CustomBorder{
            tBorderwidth: 1
            borderColor: "#CCCCCC"
        }
    }
}
